<?php

namespace App\Traits\GetModel;

use App\Models\Admin\User\UserAuthorityModel;
use App\Models\Admin\User\UserModel;

trait GetUserModelTrait
{
    /**
     * @return UserModel
     */
    public function getUserModel(): UserModel
    {
        return loadModel('Admin\User\UserModel');
    }

    /**
     * @return UserAuthorityModel
     */
    public function getUserAuthorityModel(): UserAuthorityModel
    {
        return loadModel('Admin\User\UserAuthorityModel');
    }
}
